package com.demdevdudes.disch.handler;

import java.util.HashMap;
import java.util.Map;

import com.demdevdudes.disch.gamestates.GameState;
import com.demdevdudes.disch.gamestates.GameStateEnum;
import com.demdevdudes.disch.gamestates.StatePlay;

public class GameStateHandler {

	private Map<GameStateEnum, GameState> gameStates;
	private GameStateEnum currentGameState;
	
	public GameStateHandler(GameRendererHandler gameRendererHandler) {
		gameStates = new HashMap<GameStateEnum, GameState>();
		gameStates.put(GameStateEnum.PLAY, new StatePlay(gameRendererHandler.getRenderer(GameStateEnum.PLAY)));
		currentGameState = GameStateEnum.PLAY;
	}

	public GameState getCurrentGameState() {
		return gameStates.get(currentGameState);
	}
	
}
